$OpenBSD: patch-latex_latex_environment_py,v 1.2 2012/03/29 07:10:11 ajacoutot Exp $
--- latex/latex/environment.py.orig	Tue Mar 13 12:24:53 2012
+++ latex/latex/environment.py	Wed Mar 28 13:43:48 2012
@@ -184,8 +184,8 @@ from ..file import File
 
 class Environment(object):
 
-    _CONFIG_FILENAME = "/etc/texmf/texmf.cnf"
-    _DEFAULT_TEXMF_DIR = "/usr/share/texmf-texlive"
+    _CONFIG_FILENAME = "${LOCALBASE}/share/texmf/web2c/texmf.cnf"
+    _DEFAULT_TEXMF_DIR = "${LOCALBASE}/share/texmf"
     _DEFAULT_TEXMF_DIR_HOME = "~/texmf"
 
     """
